projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95404c8
)
gtkentry: Fix text handle coordinates calculation
author
Carlos Garnacho
<carlosg@gnome.org>
Tue, 29 Jan 2019 11:00:07 +0000
(12:00 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Tue, 29 Jan 2019 11:00:07 +0000
(12:00 +0100)
The text allocation is already in widget-local coordinates, involving the
GtkAllocation here is not right.
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index 26fe36b1000f935bed2beddc540df96e0be63754..f5231424e4d054cda94dd1c11a22c2e4c682761d 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-3536,12
+3536,10
@@
gtk_entry_move_handle (GtkEntry *entry,
}
else
{
- GtkAllocation allocation;
GdkRectangle rect;
- gtk_widget_get_allocation (GTK_WIDGET (entry), &allocation);
- rect.x = x + text_allocation.x - allocation.x;
- rect.y = y + text_allocation.y - allocation.y;
+ rect.x = x + text_allocation.x;
+ rect.y = y + text_allocation.y;
rect.width = 1;
rect.height = height;